<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>项目索引</title>
    <script src="http://139.186.147.243:7000/js/pre.js"></script>
    <script src="http://139.186.147.243:7000/js/bundle.min.js"></script>
    <link rel="stylesheet" href="http://139.186.147.243:7000/js/bundle.min.css">
    <link rel="stylesheet" href="http://139.186.147.243:7000/css/category.css">
    <style>
        .nav-tabs{
            width: 95%;
            margin: 0 auto;
        }
        .nav-tabs li a{
            height: 40px;line-height: 40px;padding: 0 10px;
            display: inline-block;
        }
        .nav-tabs li a.active{
            background: #007bff;
            color: #fff;
        }
        .box .box-content .item2{
            color: #0068cd;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="box">
        <div class="box-title"><img src="http://pic.51yuansu.com/pic3/cover/03/43/83/5b9c8ae00f54f_610.jpg" alt="">节水系统</div>
        <div class="box-content">
            <a class="item" href="http://106.12.97.66:4570/user/login" target="_blank">井冈山智慧水务系统</a>
            <a class="item" href="http://106.12.97.66:4470/user/login" target="_blank">湖南工业大学新校区节水平台</a>
            <a class="item" href="http://106.12.97.66:4370/user/login" target="_blank">长沙理工大学节水平台</a>
            <a class="item" href="http://106.12.97.66:4270/user/login" target="_blank">张家界航空学院节水平台</a>
        </div>
    </div>
    <div class="box">
        <div class="box-title"><img src="./image/qdm.png" alt="">钱大妈Demo</div>
        <div class="box-content">
          <a class="item" href="http://182.61.56.51:7680/user/login" target="_blank">门店温度监控系统</a>
          <a class="item" href="http://182.61.56.51:4007" target="_blank">设备配置</a>
        </div>
    </div>
    <div class="box">
        <div class="box-title"><img src="./image/disanfang.png" alt="">第三方平台</div>
        <div class="box-content">
            <a class="item" href="http://www.njmeter.cn:8090/EnergyManager/main/login.do" target="_blank">迈拓集抄</a>
        </div>
    </div>
    <div class="box">
        <div class="box-title"><img src="./image/slj.png" alt="">吐鲁番水利局</div>
        <div class="box-content">
            <a class="item" href="http://106.13.201.3:3000/user/login" target="_blank">吐鲁番水利局水表集抄系统</a>
        </div>
    </div>
    <div class="box">
        <div class="box-title"><img src="./image/xsx.png" alt="">修水项目</div>
        <div class="box-content">
            <a class="item" href="http://182.61.56.51:6026/user/login" target="_blank">修水智慧水务平台</a>
        </div>
    </div>
    <div class="box">
        <div class="box-title"><img src="./image/logo.png" alt="">智能牛奶采样盒</div>
        <div class="box-content">
            <a class="item" href="http://182.61.56.51:5000/user/login" target="_blank">智能牛奶采样盒系统</a>
            <a class="item cyh-xcx" title="采样盒小程序" href="javascript:;">采样盒小程序</a>
        </div>
    </div>
    <div class="box">
        <div class="box-title"><img src="./image/wq.png" alt="">万泉项目</div>
        <div class="box-content">
            <a class="item" href="http://182.61.46.55:3004/user/login" target="_blank">万泉水务</a>
            <a
               data-toggle="popover" title="万泉缴费公众号"
               class="item wq-gzh" href="javascript:;" >万泉缴费公众号</a>
            <a data-toggle="popover" title="万泉小程序"
               class="item wq-xcx" href="javascript:;" >万泉小程序</a>
            <a class="item" href="http://47.103.146.199:8085/front/views/index.html" target="_blank">腾越营收系统</a>
        </div>
    </div>
    <div class="box">
        <div class="box-title"><img src="./image/ota.png" alt="">OTA远程升级</div>
        <div class="box-content">
            <a class="item" href="http://182.61.56.51:4011/user/login" target="_blank">OTA远程升级</a>
        </div>
    </div>
    <div class="box">
        <div class="box-title"><img src="./image/xjRTU.png" alt="">新疆RTU管理平台</div>
        <div class="box-content">
            <a class="item" href="http://182.61.56.51:6023/user/login" target="_blank">新疆RTU管理平台</a>
        </div>
    </div>
    <div class="box">
        <div class="box-title"><img src="./image/onenet.png" alt="">OneNet平台</div>
        <div class="box-content">
            <a class="item" href="http://182.61.56.51:4010/user/login/amwares" target="_blank">辂轺测试</a>
        </div>
    </div>
    <div class="box">
        <div class="box-title"><img src="./image/pipe.png" alt="">德化项目</div>
        <div class="box-content">
            <a class="item" href="http://182.61.56.51:6013/user/login" target="_blank">德化前端页面(正式)</a>
            <a class="item" href="http://182.61.56.51:6003/user/login" target="_blank">德化前端页面(测试)</a>
            <a class="item" href="http://182.61.56.51:6002/user/login" target="_blank">MQTT管理平台</a>
        </div>
    </div>
    <div class="box">
        <div class="box-title"><img src="./image/water.png" alt="">水务系统</div>
        <ul class="nav nav-tabs"  role="tablist">
            <li  ><a class="active " href="#old" data-toggle="tab">旧系统</a></li>
            <li><a href="#new" data-toggle="tab">新系统</a></li>
        </ul>
        <div class="tab-content">
            <div role="tabpanel" class="tab-pane fade in active show" id="old">
                <div class="box-content" id="water">
                </div>
            </div>
            <div role="tabpanel" class="tab-pane fade " id="new">
                <div class="box-content" id="water2">
                </div>
            </div>
        </div>

    </div>
    <div class="box">
        <div class="box-title"><img src="./image/log.png" alt="">水务系统Log日志</div>
        <div class="box-content">
            <a class="item" href="http://124.228.9.126:8000/9101/" target="_blank">衡阳Log日志页面(9101)</a>
            <a class="item" href="http://120.76.229.53/9004/" target="_blank">其它Log日志页面(9004)</a>
        </div>
    </div>
    <div class="box">
        <div class="box-title"><img src="./image/famen.png" alt="">南方阀门</div>
        <div class="box-content">
            <a class="item" href="http://182.61.56.51:5006/user/login/nffm" target="_blank">南方阀门数据平台</a>
        </div>
    </div>
    <div class="box">
        <div class="box-title"><img src="./image/lora.png" alt="">Lora平台</div>
        <div class="box-content">
            <a class="item" href="http://182.61.56.51:6001/user/login/zh" target="_blank">珠华</a>
            <a class="item" href="http://182.61.56.51:6001/user/login/amwares" target="_blank">辂轺测试</a>
            <a class="item" href="http://182.61.56.51:6001/user/login/test" target="_blank">珠华测试</a>
        </div>
    </div>
    <div class="box">
        <div class="box-title"><img src="./image/amware.png" alt="">官网</div>
        <div class="box-content">
            <a class="item" href="http://182.61.56.51:3018/#/" target="_blank">官网</a>
            <a class="item" href="http://182.61.56.51:3017/login" target="_blank">官网管理后台</a>
        </div>

    </div>
     <div class="box">
        <div class="box-title"><img src="./image/fenxiao.png" alt="">乘易</div>
        <div class="box-content">
            <a class="item" href="http://admin.gzchengyi.net/user/login" target="_blank">乘易分销管理系统</a>
        </div>
    </div>

    <div class="box">
        <div class="box-title"><img src="./image/other.png" alt="">小工具</div>
        <div class="box-content">
            <a class="item" href="http://182.61.56.51:4003" target="_blank">元件性能模拟</a>
            <a class="item" href="http://182.61.56.51:4002" target="_blank">自定义水表显示屏组合</a>
            <a class="item" href="http://182.61.56.51:4004/static/index.html" target="_blank">水表写入器</a>
            <a class="item" href="http://182.61.56.51:4000" target="_blank">T-BOX测试工具</a>
        </div>
    </div>
</div>
</body>
<script>
    var xhr;
    if (window.XMLHttpRequest) {
        xhr = new XMLHttpRequest();
    } else {
        xhr = new ActiveXObject('Microsoft.XMLHTTP');
    }
    xhr.onreadystatechange = function () {
        if (xhr.readyState == 4) {
            if (xhr.status == 200) {
                var response = JSON.parse(xhr.responseText)
                console.log('response', response)
                var waterBox = document.querySelector('#water')
                var waterBox2 = document.querySelector('#water2')
                for (var i = 0; i < response.data.length; i++) {
                    var createA = document.createElement('a');
                    var createA2 = document.createElement('a');
                    var text = document.createTextNode(response.data[i].name);
                    var text2 = document.createTextNode(response.data[i].name);
                    createA.className = 'item';
                    createA2.className = 'item item2';
                    if (['hy', 'sj_test', 'hz_test', 'wm_test', 'sc_test', 'hz_test_8409', 'wm_test_8410', 'sc_test_8411'].indexOf(response.data[i].code) >= 0) {
                        createA.href = 'http://124.228.9.126:8000/water/#/login/' + response.data[i].code
                    } else {
                        createA.href = 'http://182.61.56.51:3004/#/login/' + response.data[i].code
                        createA2.href = 'http://182.61.56.51:30004/user/login/' + response.data[i].code
                    }

                    createA.target = '_blank'
                    createA2.target = '_blank'
                    createA.appendChild(text);
                    createA2.appendChild(text2);
                    waterBox.appendChild(createA);
                    if(response.data[i].code!=='system'){
                        waterBox2.appendChild(createA2);
                    }


                }
                var hyArr = [
                    {code:'hy',name:'衡阳水务远传水表监控系统'},
                    {code:'sj_test',name:'衡阳水务远传水表测试平台(sj_test)'},
                    {code:'hz_test',name:'衡阳水务远传水表测试平台(hz_test)'},
                    {code:'wm_test',name:'衡阳水务远传水表测试平台(wm_test)'},
                    {code:'hz_test_8409',name:'衡阳水务远传水表测试平台(hz_test_8409)'},
                    {code:'wm_test_8410',name:'衡阳水务远传水表测试平台(wm_test_8410)'},
                    {code:'sc_test_8411',name:'衡阳水务远传水表测试平台(sc_test_8411)'},
];
                for (var i = 0; i < hyArr.length; i++) {
                    var createA = document.createElement('a');
                    var text = document.createTextNode(hyArr[i].name);
                    createA.className = 'item';
                    createA.href = 'http://124.228.9.126:8000/water/#/login/' + hyArr[i].code

                    createA.target = '_blank'
                    createA.appendChild(text);
                    waterBox.appendChild(createA);

                }


            }
        }
    }
    //发送请求
    xhr.open('get', 'http://182.61.56.51/available_companies', true);
    xhr.send();
    //同步接受响应

</script>
<script>
    $(function () {
        $('.wq-xcx').popover({
            trigger: 'focus',
            html:true,
            placement:'top',
            content:function(){
                return '<img style="width: 200px" src="http://182.61.46.55:3004/static/qrcode.ae7aaa3c.jpg" alt="">'
            }
        })
        $('.wq-gzh').popover({
            trigger: 'focus',
            html:true,
            placement:'top',
            content:function(){
                return '<img style="width: 200px" src="./image/wq-gzh.png" alt="">'
            }
        })
        $('.cyh-xcx').popover({
            trigger: 'focus',
            html:true,
            placement:'bottom',
            content:function(){
                return '<img style="width: 200px" src="http://182.61.56.51:5000/static/qrcode.12632d0a.jpg" alt="">'
            }
        })
    })
</script>
</html>
